Skip to content

fix(build): mark nodejs-whisper external in MCP bundling#44

Merged
DannyNs merged 1 commit into
developfrom
fix/setup-nodejs-whisper-external
Jun 18, 2026
Merged

fix(build): mark nodejs-whisper external in MCP bundling#44
DannyNs merged 1 commit into
developfrom
fix/setup-nodejs-whisper-external

Conversation

@DannyNs

@DannyNs DannyNs commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

devglide setup runs scripts/build-mcp.mjs, which bundled the voice MCP with esbuild. nodejs-whisper (an optional whisper.cpp STT dependency) was not in the external allowlist, so esbuild tried to inline it. When the package is absent or fails to install, the build failed with 'Could not resolve nodejs-whisper' and aborted every remaining bundle, degrading all servers to the tsx fallback.

The voice provider already imports nodejs-whisper lazily and degrades gracefully at runtime, so it should be external like better-sqlite3 and node-pty rather than bundled.

devglide setup runs scripts/build-mcp.mjs, which bundled the voice MCP
with esbuild. nodejs-whisper (an optional whisper.cpp STT dependency) was
not in the external allowlist, so esbuild tried to inline it. When the
package is absent or fails to install, the build failed with 'Could not
resolve nodejs-whisper' and aborted every remaining bundle, degrading all
servers to the tsx fallback.

The voice provider already imports nodejs-whisper lazily and degrades
gracefully at runtime, so it should be external like better-sqlite3 and
node-pty rather than bundled.
@DannyNs DannyNs merged commit 3fa1f94 into develop Jun 18, 2026
1 check passed
@DannyNs DannyNs deleted the fix/setup-nodejs-whisper-external branch June 18, 2026 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant